What is the meaning of the word "sword of damocles"?

Definitions:

  1. a constant and imminent peril copy to clipboard noun
    • the possibility hangs over their heads like the sword of Damocles copy to clipboard